package com.paddyi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.paddyi.mapper.SsoUserMapper;
import com.paddyi.model.SsoUser;
import com.paddyi.service.ISsoUserService;
import org.apache.dubbo.config.annotation.Service;

/**
 *  (SsoUser)
 * @author paddy
 * @since  2019-07-28 05:01:19
 */
@Service(version = "${demo.service.version}")
public class SsoUserServiceImpl extends ServiceImpl<SsoUserMapper, SsoUser> implements ISsoUserService {


    @Override
    public SsoUser findUserByPhone(String phone) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("phone",phone);
        return this.getOne(queryWrapper);
    }
}
